<template>
  <div class="sign">
    <p class="return" @click="returngo">
      👈
    </p>
    <div class="text">
      您的可用积分为
    </div>
    <div class="Jf">
      345
    </div>
    <div class="signs">
      连续签到0天
    </div>
    <p class="gotosigns">
      <button>签到</button>
    </p>
  </div>
</template>

<script>
import { getSign } from "../../utils/api";
export default {
  data() {
    return {};
  },
  mounted() {
    getSign().then((res) => {
      //   console.log(res);
    });
  },
  methods: {
    //返回
    returngo() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
.sign {
  width: 100%;
  height: 6.5rem;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#f1ead8),
    to(#fefbf2)
  );
  .return {
    font-size: 0.35rem;
    position: fixed;
    top: 0.2rem;
    left: 0.2rem;
  }
  .text {
    text-align: center;
    padding-top: 3rem;
    font-size: 0.3rem;
    color: #cccccc;
  }
  .Jf {
    color: #b3a078;
    text-align: center;
    font-size: 0.5rem;
    font-weight: 700;
    padding-top: 0.8rem;
    margin-bottom: 0.7rem;
  }
  .signs {
    width: 100%;
    height: 1rem;
    background: #e8e1cf;
    text-align: center;
    line-height: 0.7rem;
    padding-top: 0.3rem;
    font-size: 0.4rem;
    color: white;
  }
  .gotosigns {
    width: 100%;
    height: 1rem;
    text-align: center;
    line-height: 1rem;
    padding-top: 0.3rem;
    button {
      width: 3rem;
      height: 0.7rem;
      color: white;
      background: #b3a078;
      border: none;
      outline: none;
      border-radius: 0.2rem;
    }
  }
}
</style>
